package com.ruoyi.common.utils.mail;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: yinjc
 * @Date: 2022-09-28
 * @Description: 邮件参数配置类
 */
@Component
@ConfigurationProperties(prefix = "mail")
public class MailProperties {

    /** 发件人 */
    private String from;

    /** 收件人 */
    private String to;

    public void setTo(String to) {
        this.to = to;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public String getFrom() {
        return from;
    }
}
